package cn.loioi.test;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import org.xutils.view.annotation.ContentView;
import org.xutils.view.annotation.Event;
import org.xutils.view.annotation.ViewInject;

import cn.loioi.test.common.TestBaseActivity;
import cn.loioi.test.service.NotificationService;

@ContentView(R.layout.activity_main)
public class MainActivity extends TestBaseActivity {
    @ViewInject(R.id.textView)
    private TextView textView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        startService(new Intent(this, NotificationService.class));
    }

    @Override
    protected void onDestroy() {
        sendBroadcast(new Intent(NotificationService.NOTIFICATION_SEVICE_RECEIVER_FLAG));
        super.onDestroy();
    }

    @Event(value = {R.id.button1}, type = View.OnClickListener.class)
    private void onClickButton1(View view) {
    }


    @Event(value = {R.id.button2}, type = View.OnClickListener.class)
    private void onClickButton2(View view) {

    }

    @Event(value = {R.id.button3}, type = View.OnClickListener.class)
    private void onClickButton3(View view) {

    }

    @Event(value = {R.id.button4}, type = View.OnClickListener.class)
    private void onClickButton4(View view) {
    }

    @Event(value = {R.id.button5}, type = View.OnClickListener.class)
    private void onClickButton5(View view) {
    }

    @Event(value = {R.id.button6}, type = View.OnClickListener.class)
    private void onClickButton6(View view) {
    }

}
